package my.jwds.lcp01;

public class Game {

    public static void main(String[] args) {
        System.out.println();
    }
    public int game(int[] guess, int[] answer) {
        int num = 0;
        for (int i = 0; i < 3; i++) {
            if (guess[i] == answer[i])num++;
        }
        return num;
    }
    public int game1(int[] guess, int[] answer) {
        int num = 0;
        if (guess[0] == answer[0])num++;
        if (guess[1] == answer[1])num++;
        if (guess[2] == answer[2])num++;
        return num;
    }
}
